part of 'bloc.dart';

class LearningContentBlocState {
  const LearningContentBlocState({
    required this.lexicalItemMap,
    required this.collectionListItems,
  });

  final BuiltMap<String, LexicalItem> lexicalItemMap;
  final BuiltList<CollectionListItem> collectionListItems;

  LearningContentBlocState copyWith({
    BuiltMap<String, LexicalItem> Function()? lexicalItemMap,
    BuiltList<CollectionListItem> Function()? collectionListItems,
  }) {
    return LearningContentBlocState(
      lexicalItemMap: lexicalItemMap == null ? this.lexicalItemMap : lexicalItemMap(),
      collectionListItems:
          collectionListItems == null ? this.collectionListItems : collectionListItems(),
    );
  }
}
